package com.ethan.springcloud.helloservice.feign.service;

import com.ethan.springclod.api.api.HelloServiceApi;
import com.ethan.springclod.api.vo.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author daifei
 * @date 2019/7/19
 */
@RestController
@Slf4j
public class HelloFeignController implements HelloServiceApi {

    @Override
    public String hello1(String name) {
        log.info("feign hello1:{}" ,name);
        return "hello world " + name;
    }

    @Override
    public String hello2(User user) {
        log.info("feign hello2:{}" ,user);
        return user.toString();
    }

}
